﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using IAC_2013.com.iac.util;

namespace IAC_2013.com.iac.dbdao
{
    class UnitDBDAO
    {
        SqlConnection conn = new SqlConnection(DBUtils.CONNECTION_STRING);
        SqlCommand cmd;
        DataTable tb;
        public int count()
        {
            int count = 0;
            string sql = "select COUNT(*) from dv_don_vi";
            cmd = new SqlCommand();
            cmd.CommandText = sql;
            cmd.Connection = conn;
            conn.Open();
            cmd.ExecuteNonQuery();
            return count;
        }
    }
}
